#include <iostream>
#include <vector>
#include <list>
#include <iterator>
#include <algorithm>
#include <set>

using namespace std;

void test0(){
    vector<int> vec = {1, 2, 3, 5, 8};
    vector<int>::reverse_iterator rit = vec.rbegin();

    for(; rit != vec.rend(); ++rit){
        cout << *rit << " ";
    }
    cout << endl;

}

int main() {
    test0();
    return 0;
}
